#pragma once

#include "dds.h"
class CDidsonIni
{
public:
	CDidsonIni(void);
	~CDidsonIni(void);
	BOOL	SaveDidsonIni( TCHAR* inifilename );
	BOOL	LoadDidsonIni( TCHAR* inifilename );
	void	ToParaStruct( dds::DIDSON_SYS_PARAMS & param);
	void	FromParamStruct(dds::DIDSON_SYS_PARAMS  param );
private:
public:
	unsigned int	m_snSN;					
	unsigned int	m_nMount;				//start at 18
	unsigned int	m_nPort;				// always 700
	unsigned int	m_nSspd;				// meters/second
	unsigned int	m_nTimeout;				// seconds to wait for Ethernet command after power-up
	unsigned int	m_nSonarRecordMode;
	unsigned int	m_nSonarFramesPerFile;
	unsigned int	m_nSonarFrameRate;
	char			m_cIPaddress[16];
	char			m_cNetmask[16];
	char			m_cGateway[16];
	unsigned int	m_nSN;
	unsigned int	m_nMclk;				// 0=Ext windows, 1=Std windows
	unsigned int	m_nWaterTemp;			// 0=0-10C, 1=10-20C, 2=20 to 30C
	unsigned int	m_nSalinity;			// 0=fresh, 1=brackish, 2=seawater
	unsigned int	m_nFocusMode;			// bit0: 0=center, 1=average
	unsigned int	m_bLongRange;			// .70/1.2MHz model if TRUE
	unsigned int	m_bPrism;				// for Split-Body only
	unsigned int	m_b3000m;				// for 3000m depth version only
	unsigned int	m_bBroadcast;			// use Broadcast IP address to send data
	unsigned int	m_bEtherdata;			// send Ethernet data in Autonomous mode
	unsigned int	m_nSkipCount;			// send Ethernetdata every Nth frame
	unsigned int	m_bCompass;				// compass installed
	unsigned int	m_bBigLen;
	unsigned int	m_bSplitBody;
	unsigned int	m_bWRInput;
private:
	char			m_cBuffhead[17];

	

};
